﻿#region
/*******************************************************************************
** File Name:		    AdminUserLogInfoRepository.cs
** Creator:		        chao.jiang 
** EMail:               chao.jiang 
** Create date:	        
** Latest Modifier:
** Latest Modify date:
** Description:		    
** Modify History:
**
** Code Review:
**
** Version number:       1.0.0
*********************************************************************************/
#endregion
using System;
using System.Collections.Generic;
using Phoenix.Entity;
using Phoenix.Respository;
using IBatisNet.DataMapper;
using Phoenix.Data.IBatis;

namespace Phoenix.IBatisRepository
{
    public class AdminUserLogInfoRepository : BaseIBatisDao,IAdminUserLogInfo 
    {
    
		#region  Auto Generation

        public AdminUserLogInfoRepository()
            : base("/Config/IBatis/86TCMap.Config")
        {

        }
        		
        public void AddAdminUserLogInfo(EAdminUserLogInfo entity)
        {
			string stmtId = "AdminUserLogInfoMap.InsertAdminUserLogInfo";
			base.SqlMapper.Insert(stmtId, entity);
        }
        
		public  EAdminUserLogInfo GetByLogID (System.Int64 logID)
        {
			string stmtId = "AdminUserLogInfoMap.SelectByLogID";
			return base.SqlMapper.QueryForObject<EAdminUserLogInfo>(stmtId, logID);
        }
        
        public  void DeleteByLogID (System.Int64 logID)
        {
			string stmtId = "AdminUserLogInfoMap.DeleteByLogID";
			base.SqlMapper.Update(stmtId, logID);
        }
        
        public  void UpdateByLogID (EAdminUserLogInfo entity)
        {
			string stmtId = "AdminUserLogInfoMap.UpdateByLogID";
			base.SqlMapper.Update(stmtId, entity);
        }


		#endregion
    }
}

